<template>
  <div class="container">

    <!--  题库  -->
    <topicBankDrawer :open.sync="showTopicBankDrawer" enterType="1" :course-id="$route.query.courseId"></topicBankDrawer>
  </div>
</template>

<script>
import topicBankDrawer from './components/topicBankDrawer'
import { mapGetters } from 'vuex'

export default {
  name: 'topicBank',
  computed: {
    ...mapGetters(['name', 'avatar'])
  },
  components: {
    topicBankDrawer
  },
  data() {
    return {
      showTopicBankDrawer: true,
      schoolInfo: {}
    }
  },
  created() {
    this.schoolInfo = this.$store.getters.schoolInfo
  }
}
</script>

<style scoped lang="scss">
.container {
  width: 100%;
  background: #f5f6f7;
  display: flex;
  flex-direction: column;
  align-items: center;

  .header {
    width: 100%;
    height: 68px;
    display: flex;
    justify-content: center;
    background: #FFFFFF;
    align-items: center;
    box-shadow: 0 0 8px 0 rgba(9, 28, 61, 0.17);

    .header_content {
      width: 1400px;
      padding: 0 36px 0 20px;
      box-sizing: border-box;
      display: flex;
      justify-content: space-between;

      .img_logo {
        display: flex;
        align-items: center;

        .logo {
          width: 41px;
          height: 44px;
        }

        .schoolPic_add {
          width: auto !important;
          height: 58px;
        }

        .txt {
          font-size: 18px;
          font-family: PingFangSC-Semibold, PingFang SC, sans-serif;
          font-weight: 600;
          color: #333333;
          line-height: 68px;
          margin-left: 6px;
        }
      }

      .user_info {
        display: flex;
        align-items: center;
        gap: 0 10px;

        .name {
          font-family: PingFangSC-Semibold, PingFang SC, sans-serif;
          font-size: 16px;
          color: #333333;
          font-weight: bold;
        }

        .user_avatar {
          width: 40px;
          height: 40px;
          border-radius: 50%;
        }
      }
    }
  }
}
</style>
